package stripesbook.action.user.folders;

import org.stripesbook.rayures.view.stripes.SLink;
import org.stripesbook.rayures.view.stripes.SParam;
import stripesbook.action.BaseActionBean;
import stripesbook.model.Folder;
import stripesbook.view.Menu;

public class FoldersActionBean extends BaseActionBean {
  @Override
  public Menu.Section getCurrentSection() {
    return Menu.Section.MessageList;
  }
  public SLink getFolderLinkFor(Folder folder) {
    return tag(SLink.class).beanclass(MessageListActionBean.class)
      .label(bundle.get("Folder." + folder.getName()))
      .add(tag(SParam.class).name("folder").value(folder.getId()));
  }
}
